package utils;

import java.util.Vector;

public class RefreshWorker extends RefreshBaseComm {
	private String identifyno;
	private String delflag;

	private static final short FUNC_REQ_REFRESH_FINGER=25;
	private static final short FUNC_RET_REFRESH_FINGER=8025;
	
	public RefreshWorker(String serverIp, int serverPort, 
			String identifyno, String delflag){
		super(serverIp, serverPort, FUNC_REQ_REFRESH_FINGER, 
				FUNC_RET_REFRESH_FINGER);
		this.identifyno = identifyno;
		this.delflag = delflag;
	}

	@Override
	protected Vector<Byte> MakePackBody() {
		Vector<Byte> data = new Vector<Byte>();
		data.clear();
		data.addAll(MakeField(identifyno));
		data.addAll(MakeField(delflag));
		return data;
	}
}
